import request from 'utils/request'

export function upLoad(file) {
  return request({
    url: '/File/Upload',
    method: 'post',
    data: {
      Content: file.Content,
      FileType: file.FileType
    }
  })
}
//ios图片上传oss会翻转
export function iosupLoad(data) {
  return request({
    url: '/File/Upload',
    method: 'post',
    data: data
  })
}
//获取oss配置
export function GetOssSetting() {
  return request({
    url: '/File/GetOssSetting',
    method: 'get',
  })
}
//获取web直传视频配置
export function GetWebUploadFileInit(params) {
  return request({
    url: '/File/GetWebUploadFileInit',
    method: 'get',
		params: params
  })
}
